<%= ArtworkDescription.l_attr(:explanation) %>

<br /><br />
<strong>Current Descriptions:</strong>
<% if @artwork.artwork_descriptions.collect.length > 0 %>
<p id="click">(Click a language name to see and edit the description in that language)</p>
<% else %>
<p id="click" style="display:none">(Click a language name to see and edit the description in that language)</p>
<p id="noDesc">No descriptions added yet.</p>
<% end %>
<%= render :partial => "admin/artwork_descriptions/edit_javascript" %>

  <table id='artwork_description_table'>
    <%= render :partial => "admin/artwork_descriptions/edit_description", :collection => @artwork.artwork_descriptions %>
  </table>
  
<hr />

<strong><%= ArtworkDescription.l_attr(:new)%>:</strong>
<br /><br />
<div id='add_description'>
  <div id="artwork_description_new_errors"></div>
    <% remote_form_for(ArtworkDescription.new, :url => {:action => 'add_ajax'}) do |f| %>
      <%= render :partial => 'admin/artwork_descriptions/new_description', :locals => {:artwork => @artwork, :form => f} %>
    <% end %>
    
</tr></table>
</div>